package liaoxuefeng.demo;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.time.LocalDateTime;

/**
 * 客户端服务端共享接口
 * 1. 继承 Remote 接口
 * 2. 调用方法抛出统一异常
 */
public interface WorldClock extends Remote {

    LocalDateTime getLocalDateTime(String zoneId) throws RemoteException;
}
